<?php
/*
 * related product tpl
 */
if( count($data) > 0 ) :
?>
<h3 class="title"><?php print t('Related articles')?></h3>
<ul>
    <?php
        foreach( $data as $product ){
            $link = url('node/'.$product->nid);
            print "<li><a href='$link'>$product->title</a></li>";
        }
    ?>
</ul>
<?php endif; ?>